﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ItemStyle.aspx.cs" Inherits="AlbonWeb.Order.ItemStyle" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Item Style</title>
    <script src="/js/ADS.js" type="text/javascript"></script>
    <script src="/js/content.js" type="text/javascript"></script>
    <link href="/css/Content.css" rel="stylesheet" type="text/css" />
    <script src="/js/styleselector.js" type="text/javascript"></script>
    <style type="text/css">
        html, body, form
        {
            height: 100%;
            background-color: #e1e7c3;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" autocomplete="off" defaultbutton="ItemStyle_btnNext">
    <div class="rod_left">
    </div>
    <div class="rod_right">
    </div>
    <div class="main_contented">
        <div class="right_top">
            <span class="scon_word">Dealer>>New Order</span>
        </div>
        <table border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="2" class="content_title">
                    ItemName:Jacket
                </td>
            </tr>
        </table>
        <asp:Repeater ID="repItem" runat="server" OnItemDataBound="repItem_ItemDataBound">
            <HeaderTemplate>
                <table border="0" style="padding-left: 10px; padding-right: 10px;" class="table_add"
                    cellpadding="0" cellspacing="0">
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="data_lightcolor">
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr class="data_darkcolor">
                    <td colspan="2">
                        <b>
                            <%#Eval("StyleName")%>:&nbsp;&nbsp;&nbsp;&nbsp;</b>Model
                        <asp:DropDownList ID="ddlModel" runat="server" onchange='styleInit(this.value)'>
                        </asp:DropDownList>
                        <asp:HiddenField ID='styleid' runat="server" Value='<%#Eval("ID")%>' />
                        <asp:FileUpload ID="FileUpload1" runat="server" /><label class="toolTip">Insert Style
                            Picture</label>
                        <asp:HiddenField ID="filepath" runat="server" />
                        <!--Item Style-->
                        <table class="tb_style" cellpadding="0" cellspacing="0">
                            <asp:Repeater ID="repStyle" runat="server">
                                <ItemTemplate>
                                    <tr class="data_lightcolor">
                                        <td class="td_stylename">
                                            <asp:HiddenField ID="key" runat="server" Value='<%#Eval("ID")%>' />
                                            <a href="#" title='<%#Eval("selectMode") %>' class="style_name"  id='key_<%#Eval("ID")%>'>
                                                <%#Eval("styleName")%></a>
                                            <div class="style_selecter" id='selecter_<%#Eval("ID")%>'>
                                                <div class="selector_head" >
                                                    <%#Eval("styleName") %>:
                                                    <input type="text" class='search' name='<%#Eval("selectMode")%>' id='select_<%#Eval("ID")%>' />
                                                </div>
                                                <span class="closediv" title="Close">Close</span>
                                                <div style="border: 1px inset #AFDA8D; background: white;
                                                    width: 370px; height: 250px; margin-left: 15px; margin-top: 5px; overflow-y: scroll;
                                                    overflow-y: auto" id='list_<%#Eval("ID")%>'>
                                                    loading...
                                                </div>
                                            </div>
                                        </td>
                                        <td>
                                            <div>
                                                <input type="text" id='value_<%#Eval("ID")%>' class='style_value' value='UnSelected'
                                                    <%#(Eval("selectMode").ToString()=="Text")?"style='border:1;width:150px;background:white'":"style='border:0' readonly='readonly'"%> />
                                            </div>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                            <tr class="data_lightcolor">
                                <td colspan="2">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:TextBox ID="remark" runat="server" TextMode="MultiLine" Width="70%" Height="65px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                        <!--Item Sytle-->
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <asp:HiddenField ID="hfKeyValue" runat="server" />
        <input type="hidden" value='<%=Session["orderid"].ToString() %>' id="hforderid" />
        <table border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr class="data_darkcolor">
                <td>
                </td>
                <td align="right">
                    <asp:Button ID="saveModel" runat="server" Text="Save As Model" />
                    <asp:Button ID="ItemStyle_btnNext" runat="server" Text="Next" OnClick="btnNext_Click" />
                </td>
            </tr>
            <tr class="data_lightcolor" style="height:200px;">
                <td class="td_left">
                    &nbsp;
                </td>
                <td class="td_right">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
